let Session = function (){}

Session.getInstance = (function (){
    let instance = new Session();
    return function (){
        if(!instance){
            instance = new Session();
        }
        return instance
    }
})()

Session.prototype.setPrincipal =  function (principal){
    this.principal = principal;
}

Session.prototype.getPrincipal =  function (){
    return this.principal;
}

export default Session
